<template>
  <div class="tag-box">
    <CloudTag v-model="visible" closable> Movies </CloudTag>
    <br />
    <div class="toggle-tag" @click="visible = !visible">toggle</div>
  </div>
</template>

<script>

  export default {
    title: '6.控制关闭状态',
    subTitle: '通过 visible 属性控制关闭状态。',
    data () {
      return {
        visible: true
      }
    },
    methods: {
    }
  }
</script>

<style lang="scss">
  .tag-box {
    display: flex;
    .toggle-tag {
      height: 24px;
      font-size: 12px;
      border-radius: 2px;
      padding: 0 12px;
      color: #333333;
      border: 1px solid #cccccc;
      display: flex;
      align-items: center;
    }
    .toggle-tag:hover {
      cursor: pointer;
    }
  }
  .tag-box .cloud-input {
    height: 24px;
  }
  .tag-item {
    padding-right: 10px;
  }
</style>